import { userStore } from '../store/index.js'
/**
 * 初始化store
 */
function initPinia() {
  const store = userStore()
  if (localStorage.getItem('loginUser')) {
    const loginUser = JSON.parse(localStorage.getItem('loginUser'))
    store.setLoginUser(loginUser)
  }
}

export {
  initPinia
}
